package cn.qhuan.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 作品表
 * @Author: 司翔宇
 * @Date:   2020-12-18
 * @Version: V1.0
 */
@Data
@TableName("qh_works")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="qh_works对象", description="作品表")
public class Works implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**作品名*/
	@Excel(name = "作品名", width = 15)
    @ApiModelProperty(value = "作品名")
    private String title;
	/**作品图像*/
	@Excel(name = "作品图像", width = 15)
    @ApiModelProperty(value = "作品图像")
    private String images;
	/**艺术家id*/
	@Excel(name = "艺术家id", width = 15)
    @ApiModelProperty(value = "艺术家id")
    private String artistId;
	/**朝代id*/
	@Excel(name = "朝代id", width = 15)
    @ApiModelProperty(value = "朝代id")
    private String dynastyId;
	/**尺寸*/
	@Excel(name = "尺寸", width = 15)
    @ApiModelProperty(value = "尺寸")
    private String size;
	/**状态(0,默认未审核状态状态,1审核状态,2审核不通过状态)*/
	@Excel(name = "状态(0,默认未审核状态状态,1审核状态,2审核不通过状态)", width = 15)
    @ApiModelProperty(value = "状态(0,默认未审核状态状态,1审核状态,2审核不通过状态)")
    private Integer status;
	/**是否在前台显示*/
	@Excel(name = "是否在前台显示", width = 15)
    @ApiModelProperty(value = "是否在前台显示")
    private Integer showFront;
	/**删除状态（0，正常，1已删除）*/
	@Excel(name = "删除状态（0，正常，1已删除）", width = 15)
    @ApiModelProperty(value = "删除状态（0，正常，1已删除）")
    private String delFlag;
	/**介绍*/
	@Excel(name = "介绍", width = 15)
    @ApiModelProperty(value = "介绍")
    private String introduce;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
	/**审核时间*/
	@Excel(name = "审核时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "审核时间")
    private Date auditTime;
	/**审核人id*/
	@Excel(name = "审核人id", width = 15)
    @ApiModelProperty(value = "审核人id")
    private String auditBy;
	/**审核不通过的理由*/
	@Excel(name = "审核不通过的理由", width = 15)
    @ApiModelProperty(value = "审核不通过的理由")
    private String refusedReason;
	/**排序*/
	@Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
    private Integer sort;
}
